package com.swanclouds.core.transport;

import com.swanclouds.api.exceptions.ResponseException;

/**
 * Exception Handles for common Http messages and status codes
 *
 * @author Jeremy Unruh
 */
@Deprecated
public class HttpExceptionHandler {

    /**
     * @param message The Http message
     * @param status The Http code
     * @deprecated Use {@link ResponseException#mapException(String, int, Throwable)}
     * @return this
     */
    @Deprecated
    public static ResponseException mapException(String message, int status) {
        return ResponseException.mapException(message, status, null);
    }

    /**
     * @param message the Http message
     * @param status the Http code
     * @param cause throw Exception
     * @deprecated Use {@link ResponseException#mapException(String, int, Throwable)}
     * @return this
     */
    @Deprecated
    public static ResponseException mapException(String message, int status, Throwable cause) {
        return ResponseException.mapException(message, status, cause);
    }
}
